package com.youdoneed.friends.query;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;
import com.youdoneed.friends.model.Friends;

import javax.annotation.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;

/**
 * QFriends is a Querydsl query type for Friends
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QFriends extends com.querydsl.sql.RelationalPathBase<Friends> {

    private static final long serialVersionUID = -2037872708;

    public static final QFriends Friends = new QFriends("Friends");

    public final NumberPath<Integer> blBlack = createNumber("blBlack", Integer.class);

    public final DateTimePath<java.util.Date> createTime = createDateTime("createTime", java.util.Date.class);

    public final StringPath friendId = createString("friendId");

    public final StringPath userId = createString("userId");

    public QFriends(String variable) {
        super(Friends.class, forVariable(variable), "null", "Friends");
        addMetadata();
    }

    public QFriends(String variable, String schema, String table) {
        super(Friends.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QFriends(String variable, String schema) {
        super(Friends.class, forVariable(variable), schema, "Friends");
        addMetadata();
    }

    public QFriends(Path<? extends Friends> path) {
        super(path.getType(), path.getMetadata(), "null", "Friends");
        addMetadata();
    }

    public QFriends(PathMetadata metadata) {
        super(Friends.class, metadata, "null", "Friends");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(blBlack, ColumnMetadata.named("bl_black").withIndex(3).ofType(Types.INTEGER).withSize(10).notNull());
        addMetadata(createTime, ColumnMetadata.named("create_time").withIndex(4).ofType(Types.TIMESTAMP).withSize(19).notNull());
        addMetadata(friendId, ColumnMetadata.named("friend_id").withIndex(2).ofType(Types.VARCHAR).withSize(32).notNull());
        addMetadata(userId, ColumnMetadata.named("user_id").withIndex(1).ofType(Types.VARCHAR).withSize(32).notNull());
    }

}

